package com.zhai.boot.async.log;

import lombok.Data;

/**
 * @author Created by 翟凤玺
 * @package com.zhai.boot.async.log
 * @project-name zhai-boot
 * @description 业务日志 出入参
 * @create-datetime 2019-9-19 16:28
 */
@Data
public class BizLogInOut {

    /**
     * 流水号
     */
    private String serialNum;

    /**
     * 时间
     */
    private String date;

    /**
     * 表
     */
    private String table;

    /**
     * 备注
     */
    private String note;

    /**
     * 入参
     */
    private Object in;

    /**
     * 出参
     */
    private Object out;

    public BizLogInOut(String table, Object in, Object out) {
        this.table = table;
        this.in = in;
        this.out = out;
    }

    public BizLogInOut(String serialNum, String table, Object in, Object out) {
        this.serialNum = serialNum;
        this.table = table;
        this.in = in;
        this.out = out;
    }

    public BizLogInOut(String serialNum, String table, String note,  Object in, Object out) {
        this.serialNum = serialNum;
        this.table = table;
        this.note = note;
        this.in = in;
        this.out = out;
    }
}